package intf

import (
	C "gitee.com/ljfirst/algo-go-sdk/common/constant"
	"gitee.com/ljfirst/algo-go-sdk/src/data_structure/list"
)

/**
 * @author ljfirst
 * @version V1.0
 * @date 2023/6/28 17:17
 * @author-Email ljfirst@mail.ustc.edu.cn
 * @blogURL https://blog.csdn.net/ljfirst
 * @description
 * */
type CacheINTF interface {
	Set(key, value interface{})
	Get(key interface{}) interface{}
	Delete(key interface{})
	Length() int
	Clear()
	GetAttribute() *C.Attribute
}

var CacheAssemble = map[string][]interface{}{
	"Cache": {
		&list.LFUCache{},
		&list.LRUCache{},
	},
}
